package com.geekaca.mvc.service.impl;

import com.geekaca.mvc.dao.UserMapper;
import com.geekaca.mvc.domain.User;
import com.geekaca.mvc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private  UserMapper userMapper;

    @Override
    public int register(User user) {
        return userMapper.register(user);
    }

    @Override
    public int getAllUser(){
        return userMapper.getAllUser();
    }

}
